import Mock from "mockjs";
export default [
  {
    method: "get",
    url: "/mock/api/v1/test",
    response: ({ query }) => {
      let current = query.current ? Number(query.current) : 1;
      // 每页要显示的记录条数，默认为10条
      let pageSize = query.pageSize ? Number(query.pageSize) : 10;
      const userData = Mock.mock({
        "list|10": [
          {
            record_id: (current-1) * pageSize + 1,
            report_by_name: "上报人",
            status: 0,
          },
        ],
        pagination: {
          total: 11,
          current: 1,
          pageSize: 10,
        },
      });
      return {
        code: 0,
        msg: "ok",
        data: {
          ...userData,
        },
      };
    },
  },
];
